<?php 
$zebra=0;
if (count($data) > 0):
	
	foreach($data as $ch):
?>
	<tr class="fakeLink<?php if ($zebra++%2==1 && $ch['bap_notif_opened']):?> zebra <?php endif?> 
			<?php if (!$ch['bap_notif_opened']):?>notification"<?php endif?>" 
		onmouseover="$(this).getElements('select[class:selectButton]').setStyle('visibility','visible')"
		onmouseout="$(this).getElements('select[class:selectButton]').setStyle('visibility','hidden')",
		onclick="redirectToView('<?php echo $ch['bap_notif_id']? $ch['bap_notif_id']: 0?>','<?php echo $ch['bap_id']?>','CA')">
	<td><?php echo $ch['perb_tgl_lapor']?></td>
	<td><?php echo $ch['perb_tgl_kejadian']?></td>
	<td><?php echo $jenis_options[$ch['achiev_jenis']]?></td>
	<td><?php echo $ch['achiev_bidang']?></td>
	<td><?php echo $tingkat_options[$ch['detachiev_tingkat']]?></td>
	<td><?php echo $ch['detachiev_nama']?></td>
	<td align="right" width="1px"></td>
	</tr>
<?php 
	endforeach;
else:
?><tr><td align="center" colspan="6">Tidak ada data</td></tr><?php 
endif;